#pragma once

#include <boost/shared_ptr.hpp>
#include <map>
#include "RiskMeasure.h"

namespace quic
{
	class RiskMeasureReader
	{
	public:
		RiskMeasureReader(void);		
		~RiskMeasureReader(void);
		boost::shared_ptr<RiskMeasure> read(std::string file);
	private:
		typedef std::map<std::string,boost::shared_ptr<RiskMeasure> > Nodes;
		typedef std::pair<std::string,std::string> Edge;
		typedef std::multimap<std::string,std::string> Edges;
		void linkNodes(Nodes &nodes, Edges &edges);
	};
};
